package my.study.designpattern.abstractfactory.example1;

public class MacCPU implements CPU {
	private String cpuId;
	private int frequency;

	public MacCPU(String cpuId) {
		this.cpuId = cpuId;
		print("MacCPU  " + this.cpuId + "  is created");
	}

	public String getCpuId() {
		return this.cpuId;
	}

	public int getFrequency() {
		return this.frequency;
	}

	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}

	public void printCpu() {
		print("MacCPU" + "  id  " + this.cpuId + "  frequency  "
				+ this.frequency);
	}

	private void print(Object o) {
		System.out.println(o);
	}

}
